<?php
class Dangky extends AppModel {
	var $name = 'Dangky';
	var $validate = array(
		'users_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'loaihosos_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'linhvucs_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'Users' => array(
			'className' => 'Users',
			'foreignKey' => 'users_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		/*'Loaihosos' => array(
			'className' => 'Loaihosos',
			'foreignKey' => 'loaihosos_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Linhvucs' => array(
			'className' => 'Linhvucs',
			'foreignKey' => 'linhvucs_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)*/
	);
    
    var $hasAndBelongsToMany = array(
		'Tinhtp' => array(
			'className' => 'Tinhtp',
            'joinTable' => 'noilamviecs',
			'foreignKey' => 'dangky_id',
            'associationForeignKey' => 'id_t',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
   	  'Chuyenmon' => array(
			'className' => 'Chuyenmon',
            'joinTable' => 'yeucaucms',
			'foreignKey' => 'dangky_id',
            'associationForeignKey' => 'chuyenmon_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
	),
    'Trinhdo' => array(
			'className' => 'Trinhdo',
            'joinTable' => 'yeucautds',
			'foreignKey' => 'dangky_id',
            'associationForeignKey' => 'trinhdo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
	)
    );    
    
    
    
}
?>
